package com.yunc.common.core.constant;

/**
 * 常用状态
 **/
public interface BaseConstant {

    String DEFAULT_PASSWORD = "123456";

    String REMOVE_Y = "Y";
    String REMOVE_N = "N";

    /**
     * 1=全部数据权限2=自定数据权限3=部门数据权限4=部门及以下部门权限5=个人权限
     */
    String DATA_SCOPE_ALL = "1";
    String DATA_SCOPE_CUSTOM = "2";
    String DATA_SCOPE_DEPT = "3";
    String DATA_SCOPE_DEPT_CHILD = "4";
    String DATA_SCOPE_SELF = "5";

    /**
     * 1未读2=已读3=删除4=还原等
     */
    String SYS_MESSAGE_NO_READ = "1";
    String SYS_MESSAGE_READ = "2";
    String SYS_MESSAGE_DEL = "3";
    String SYS_MESSAGE_RESTORE = "4";

    public enum MenuType {
        /**
         * 目录
         */
        CATALOG("0"),
        /**
         * 菜单
         */
        MENU("1"),
        /**
         * 按钮
         */
        BUTTON("2");

        private String value;

        private MenuType(String value) {
            this.value = value;
        }

        public String getValue() {
            return value;
        }
    }

}
